<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>扩展卡片效果</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <!-- 
        这个Demo最主要是使用到了CSS的 flex-grow贪婪特性
            本身是没有什么难点
    -->
    <div class="container">
        <div class="show" style="background-image: url(./img/grayscale-photo-of-computer-laptop-near-white-notebook-and-169573.jpg);">
            <h3>代码世界</h3>
        </div>
        <div style="background-image: url(./img/02.jpg);">
            <h3>清晨城市</h3>
        </div>
        <div style="background-image: url(./img/03.jpg);">
            <h3>头顶城市</h3>
        </div>
        <div style="background-image: url(./img/04.jpg);">
            <h3>海边城市</h3>
        </div>
        <div style="background-image: url(./img/01.jpg);">
            <h3>傍晚城市</h3>
        </div>
    </div>
    <script src="./index.js"></script>
</body>
</html>